package org.csu.forum.service;

import org.csu.forum.domain.PO.Friend;
import org.csu.forum.domain.PO.InventMessage;
import org.csu.forum.domain.PO.Message;

import java.util.List;

public interface CommunicationService {

    //通过好友ID查看聊天记录内容
    public List<Message> getMessageList(Friend friend);

    //插入新的message到message表中
    public void insertMessage(Message message);

    //插入邀请对象ID到邀请信息中
    public void insertInventMessage(InventMessage inventMessage);

    //通过邀请对象ID获取好友同意情况
    public InventMessage getInventMessage(int inventorid);

    //添加好友ID
    public void insertFriend(Friend friend);

    //删除好友ID
    public void deleteFriend(Friend friend);


}
